<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a="http://richfaces.org/a4j">

	<s:decorate id="applicationNameDecoration"
		template="/layout/edit.xhtml">
		<ui:define name="label">#{messages['application.name']}:</ui:define>
		<h:inputText required="true" id="name"
			value="#{applicationx.name}" style="width:300px;" />
	</s:decorate>

	<s:decorate id="applicationApplicantFirstnameDecoration"
		template="/layout/edit.xhtml">
		<ui:define name="label">#{messages['application.customer.firstname']}:</ui:define>
		<h:inputText required="true" id="firstname"
			value="#{applicationx.applicant.firstname}" style="width:300px;" />
	</s:decorate>

	<s:decorate id="applicationApplicantLastnameDecoration"
		template="/layout/edit.xhtml">
		<ui:define name="label">#{messages['application.customer.lastname']}:</ui:define>
		<h:inputText required="true" id="lastname"
			value="#{applicationx.applicant.lastname}" style="width:300px;">
        </h:inputText>    
	</s:decorate>
	
	<s:decorate id="applicationApplicantPeselDecoration"
		template="/layout/edit.xhtml">
		<ui:define name="label">#{messages['application.customer.pesel']}:</ui:define>
		<h:inputText required="true" id="pesel"
			value="#{applicationx.applicant.pesel}" style="width:300px;">
        </h:inputText>    
	</s:decorate>

	<s:decorate id="applicationApplicantAddressStreetDecoration"
		template="/layout/edit.xhtml">
		<ui:define name="label">#{messages['person.address.street']}:</ui:define>
		<h:inputText required="true" id="street"
			value="#{applicationx.applicant.address.street}" style="width:300px;" />
	</s:decorate>

	<s:decorate id="applicationApplicantAddressPostcodeDecoration"
		template="/layout/edit.xhtml">
		<ui:define name="label">#{messages['person.address.postcode']}:</ui:define>
		<h:inputText required="true" id="postcode"
			value="#{applicationx.applicant.address.postcode}"
			style="width:300px;"
            validatorMessage="#{messages['validator.postdode']}">
            <f:validator validatorId="postalValidator"/>
        </h:inputText>
	</s:decorate>

	<s:decorate id="applicationApplicantAddressCityDecoration"
		template="/layout/edit.xhtml">
		<ui:define name="label">#{messages['person.address.city']}:</ui:define>
		<h:inputText required="true" id="city"
			value="#{applicationx.applicant.address.city}" style="width:300px;" />
	</s:decorate>

	<s:decorate id="applicationApplicantMotherFirstnameDecoration"
		template="/layout/edit.xhtml">
		<ui:define name="label">#{messages['application.customer.motherFirstname']}:</ui:define>
		<h:inputText required="true" id="mother"
			value="#{applicationx.applicant.motherFirstname}"
			style="width:300px;" />
	</s:decorate>

	<s:decorate id="applicationApplicantFatherFirstnameDecoration"
		template="/layout/edit.xhtml">
		<ui:define name="label">#{messages['application.customer.fatherFirstname']}:</ui:define>
		<h:inputText required="true" id="father"
			value="#{applicationx.applicant.fatherFirstname}"
			style="width:300px;" />
	</s:decorate>

	<s:decorate id="applicationApplicantEducationDecoration"
		template="/layout/edit.xhtml">
		<ui:define name="label">#{messages['application.customer.education']}:</ui:define>

		<h:selectOneMenu value="#{applicationx.applicant.education}"
			required="false" id="educationOption" style="width:300px;">
			<s:selectItems var="e" value="#{education}"
				label="#{e.label}" id="education" />
			<s:convertEnum />
		</h:selectOneMenu>
	</s:decorate>

</ui:composition>